package com.bins.langchain.langchain4j.controller;

import com.bins.langchain.langchain4j.service.VectorStoreService;
import dev.langchain4j.model.embedding.EmbeddingModel;
import dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class EmbeddingController {

//    @Resource
//    private VectorStoreService vectorStoreService;

//    private final EmbeddingModel embeddingModel;
//
//    private final MilvusEmbeddingStore milvusEmbeddingStore;

    @PostMapping("/embed")
    public String embed(@RequestBody String text) {
        // return vectorStoreService.embedding(text);
        return null;
    }

    @PostMapping("/embed-meta")
    public String embedMeta(@RequestBody String text) {
        // return vectorStoreService.embeddingWithMeta(text);
        return null;
    }
}